//
//  FLUploadModule.h
//  FLBaseWorkModule_iOS
//
//  Created by 魏延龙 on 2020/6/29.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface FLUploadModule : NSObject

+ (instancetype)sharedInstance;

/// 初始化
-(void)initClient;

/// 拼接文件名字 非必须调用
-(NSString *)splitRecordFileNameWithTaskUid:(NSString *)taskuid fileName:(NSString *)fileName;

/// 取消上传
- (void)normalRequestCancel;

/// 本地文件上传
-(void)uploadLocalFile:(NSString *)filePath objectKey:(NSString *)objectKey success:(void (^)(NSString *fileUrl))success failure:(void (^)(NSError *error))failure progress:(void (^)(CGFloat progress))progress;

/// NSData上传
-(void)uploadData:(NSData *)data objectKey:(NSString *)objectKey success:(void (^)(NSString *fileUrl))success failure:(void (^)(NSError *error))failure progress:(void (^)(CGFloat progress))progress;

/// 大文件上传
- (void)uploadBigFile:(NSString *)filePath objectKey:(NSString *)objectKey success:(void (^)(NSString *fileUrl))success failure:(void (^)(NSError *error))failure progress:(void (^)(CGFloat progress))progress;

@end

NS_ASSUME_NONNULL_END
